/***  DOCUMENTATION LAYER

	JEDO (JavaScript/EcmaScript Data Object) File
	* PROTOTYPE *

	Last Update: Apr 2007
	Author: Tom at klenwell@gmail.com
	License: GPL License

NOTES
	JEDO is a proposed as a loose standard for objects representing data in javascript applications.
	
	A JEDO data file has 2 major variables:
	
	JEDODEF - an array-like object containing meta-information about the data in the file.
		
	JEDO - an array-like object containing the actual application data available for
		remote loading.
		
		JEDO allows the data to be structured in whatever way suits the application -- 
		normally as an aggregation of objects representing rows in a database.  Where
		a useful standard is recognized, it may be proposed as a JEDOn standard where n
		is an integer and the designation is applied as the variable name for the JEDOn
		object. 
		
		The JEDO0 (zero) standard is defined simply as JEDO0[row_num] = { 'blob' : blob };
		
		More information on JEDO structures and standards is available at 
		http://klenwell.net/is/JavascriptJedo
		
	To link: <script type="text/javascript" src="path/to/file.js"></script>
	
NOTE on IE:
	IE 7 seems to treat Obj[0] as null, even if Obj[0] is not null.  This
	poses a problem for array-like objects that start with 0 (as they probably 
	should!)

______________________________________________________________________________*/

/* File Definitions */
//if ( JEDODEF != null ) JEDODEF_SUPER = { _i : JEDODEF };		/* juggle multiple files */
var JEDODEF = {
	_j : 0,		/* JEDO Standard (in this case, 0) */
	_e : 0,		/* encrypted? */
	_d : 'this is a prototype of a JEDO [0] javascript data file.',	/* description (keep it short) */
	_i : 'jedo-zero'		/* identifier that can be checked by script (must be supplied by file creator) */
};


/* JEDO Data Object */
//if ( JEDO != null ) JEDO_SUPER = { _i : JEDO };		/* juggle multiple files */
var JEDO = new Array();

JEDO[1] = {
	'blob' : 'This is a sample file demonstrating the JEDO data file.  All strings should be one-line.  JEDO utilities are being developed to help with this.'
};

JEDO[JEDO.length+1] = {
	'blob' : 'JEDO rows can be accessed as properties of the JEDO object, in this case : var blob = JEDO[2]' 
};

JEDO[JEDO.length+1] = {
	'blob' : 'JEDO has been successfully tested in both Firefox and IE7.' 
};

JEDO[JEDO.length+1] = {
	'blob' : 'More info on JEDO is available at http://klenwell.net/is/JavascriptJedo' 
};



